﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入是什么动物");
            String.dongwu= Console.WriteLine();

            if (dongwu .Equals("鱼"))
            {
                Fish fish = new Fish();
                Console.WriteLine("请输入鱼的名字");
                fish.Name = Console.WriteLine();

                Console.WriteLine("请输入鱼的颜色");
                fish.Color = Console.WriteLine();

                fish .BlowBubble();

            }
            if(dongwu.Equals("狗"))
                {
                Dog dog = new Dog();
                Console.WriteLine("请输入狗的名字");
                dog.Name = Console.WriteLine();

                Console.WriteLine("请输入狗的颜色");
                dog.Color = Console.WriteLine();
                
                dog.Bite();
            }
        }
    }
}
